package com.ps.helpdesk.model;

import java.io.Serializable;
import java.util.Set;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;

@Entity
public class Situacao implements Serializable {
	@Id
	private int idsituacao;

	private String descricao;

	@OneToMany(mappedBy="idsituacao")
	private Set<Acao> acaoCollection;

	@OneToMany(mappedBy="idsituacao")
	private Set<Ocorrencia> ocorrenciaCollection;

	private static final long serialVersionUID = 1L;

	public Situacao() {
		super();
	}

	public int getIdsituacao() {
		return this.idsituacao;
	}

	public void setIdsituacao(int idsituacao) {
		this.idsituacao = idsituacao;
	}

	public String getDescricao() {
		return this.descricao;
	}

	public void setDescricao(String descricao) {
		this.descricao = descricao;
	}

	public Set<Acao> getAcaoCollection() {
		return this.acaoCollection;
	}

	public void setAcaoCollection(Set<Acao> acaoCollection) {
		this.acaoCollection = acaoCollection;
	}

	public Set<Ocorrencia> getOcorrenciaCollection() {
		return this.ocorrenciaCollection;
	}

	public void setOcorrenciaCollection(Set<Ocorrencia> ocorrenciaCollection) {
		this.ocorrenciaCollection = ocorrenciaCollection;
	}

}
